package com.jzx.provider.ucenter.user.dto;

import com.jzx.provider.common.constants.Status;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author daihuihui
 * @date 2019/2/7
 */
@Data
@Builder
public class UserCommand implements Serializable {
    /**
     * 手机号
     */
    @Pattern(regexp = "^1\\d{10}$")
    private String mobile;

    /**
     * 手机验证码
     */
    @Size(min = 4, max = 4)
    private String code;

    /**
     * 明文密码
     */
    @Size(min = 6, max = 20)
    private String password;

}
